import {view, View, binder} from "adajs";
import LodgeService from "./state.js";

@view({
	className: "lodgelist",
	template: "./template.html",
	style: "./style.scss",
	dataset: {
		service: LodgeService
	}
})
class Lodge extends View {
	@binder("gotoPage")
	gotoPage({item}) {
		this.dispatchEvent('gotoPage', `/admin/lodge/detail?id=${item.id}`);
	}
}

export default Lodge;